import { Layout } from '@fl/utils/routerHelper'

const pricingTool: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/purchase-pages/pricing-tool/goods-management/index.vue'),
            meta: {
                title: '组价商品管理(招标)',
            },
            name: 'goods-management',
            path: 'goods-management',
        },
        {
            component: () => import('@/purchase-pages/pricing-tool/add-or-edit-pricing/index.vue'),
            meta: {
                title: '新建/编辑组价商品',
            },
            name: 'add-or-edit-pricing',
            path: 'add-or-edit-pricing',
        },
        {
            component: () => import('@/purchase-pages/pricing-tool/project-management/index.vue'),
            meta: {
                title: '项目管理(招标)',
            },
            name: 'project-management',
            path: 'project-management',
        },
        {
            component: () => import('@/purchase-pages/pricing-tool/choose-supplier/index.vue'),
            meta: {
                title: '供应商选取',
            },
            name: 'choose-supplier',
            path: 'choose-supplier',
        },
        {
            component: () => import('@/purchase-pages/pricing-tool/project-price-list/index.vue'),
            meta: {
                title: '分项价格清单',
            },
            name: 'project-price-list',
            path: 'project-price-list',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        title: '组价工具',
    },
    name: 'pricing-tool',
    path: 'pricing-tool',
}

export default pricingTool
